/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86156
 * Date: 2022-03-08
 * Time: 15:41
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.setArray();
        myArrayList.addElement(0, 1);
        myArrayList.addElement(1, 2);
        myArrayList.addElement(2, 3);
        myArrayList.addElement(3, 4);
        myArrayList.display();
        System.out.println(myArrayList.listLength());
        myArrayList.removeElement(3);
        myArrayList.display();
        System.out.println(myArrayList.listLength());
        myArrayList.removePosition(1);
        myArrayList.display();
        myArrayList.clear();
        myArrayList.checkElement(5);
    }
}
